package la.bbs558.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Data;
/**
 * 邀请码(InvitationCode)表实体类
 *
 * @author Shanks
 * @since 2023-12-17 20:07:41
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class InvitationCode extends Model<InvitationCode> {
    
    private Long id;
    
    /**
     * 邀请码8位
     */
    private String code;
    
    /**
     * 创建人
     */
    private Long createUser;
    
    private Date createTime;
    
    private Date updateTime;
    
    /**
     * 注册人0表示未注册
     */
    private Long registerUser;
    

    //获取主键值
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
